package cn.tedu.spring.scope;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestOder {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext
                ("cn.tedu.spring.scope");
        for (int i=0;i<3;i++) {
            Oder bean = context.getBean(Oder.class);
            System.out.println("第"+i+"次的"+bean);
        }

    }

}
